//
//  SettingViewController.m
//  MetenEnglish
//
//  Created by Hsn on 14/12/6.
//  Copyright (c) 2014年 Shenzhen Securities Information Co., Ltd. All rights reserved.
//

#import "SettingViewController.h"

@interface SettingViewController ()

@end

@implementation SettingViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view.
    self.title = @"设置";
    
    UIButton *loginOutButton = [UIButton buttonWithType:UIButtonTypeRoundedRect];
    [loginOutButton setFrame:CGRectMake(100, 100, 150, 50)];
    [loginOutButton setTitle:@"退出登录" forState:UIControlStateNormal];
    [loginOutButton setTitleColor:OVERALL_COLOR forState:UIControlStateNormal];
    [loginOutButton addTarget:self action:@selector(loginOut) forControlEvents:UIControlEventTouchUpInside];
    [self.view addSubview:loginOutButton];
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (void)loginOut {
    if (_delegate && [_delegate respondsToSelector:@selector(loginOut)]) {
        [_delegate performSelector:@selector(loginOut)];
    }
    
}

/*
#pragma mark - Navigation

// In a storyboard-based application, you will often want to do a little preparation before navigation
- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    // Get the new view controller using [segue destinationViewController].
    // Pass the selected object to the new view controller.
}
*/

@end
